﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VoucherDetails.aspx.cs" Inherits="logicunivesityinventorystore.Store.VoucherDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link href="../css/style.css" rel="stylesheet" type="text/css" />
      <script language="javascript" type="text/javascript">
          function getbacktostepone() {
              window.location = "VoucherDetails.aspx";
          }
          function onSuccess() {
              setTimeout(okay, 2000);
          }
          function onError() {
              setTimeout(getbacktostepone, 2000);
          }
          function okay() {
              // window.parent.document.getElementById('btnOkay').
              window.parent.document.getElementById('btnOkay').click();

          }
          function cancel() {

              window.parent.document.getElementById('btnCancel').click();
          }
    </script>
</head>
<body>
    <form id="form1" runat="server">
 <input type="hidden" value="" runat="server" id="hdnWindowUIMODE" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="popup_Container">
        <div class="popup_Titlebar" id="PopupHeader">
            <div class="TitlebarLeft">
                Voucher Details
            </div>
            <div class="TitlebarRight" onclick="cancel();">
            </div>
        </div>
        <div class="popup_Body">
            <asp:MultiView ID="MultiViewExpanse" runat="server" ActiveViewIndex="0">
                <asp:View ID="ViewInput" runat="server">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                    <center>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        DataSourceID="ObjectDataSource3" 
                       >
                        <Columns>
                           <asp:BoundField DataField="ItemCode" HeaderText="Item Code" />
                    <asp:BoundField DataField="AdjustmentQty" HeaderText="Adjustment Qty" />
                    <asp:BoundField DataField="Reason" HeaderText="Reason" />

                        </Columns>
                    </asp:GridView>
                    </center>
                    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                        SelectMethod="FindAdjustmentVoucherDetailsByVoucherID" 
                        TypeName="BusinessLogicLayer.AdjustmentVoucherFacade">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="voucherID" QueryStringField="VoucherID" 
                                Type="String" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </asp:View>
                
            </asp:MultiView>
        </div>
        <div class="popup_Buttons" style=" float:right">
        &nbsp;<%--  <asp:Button ID="btnOkay" Text="Done" runat="server"  />--%><br />
&nbsp;<input id="btnCancel" value="Close" type="button" onclick="cancel();" 
                align="middle" />
        </div>
    </div>
    </form>
</body>
</html>
